package com.chinaztt.fda.Interface;

import com.chinaztt.fda.parameter.ParFlag;
import com.chinaztt.fda.parameter.ParameterSetting;

/**
 * 获取接口URL  样式范例
 * @author zhoulp
 *
 */

public class Urls {

	private static String url, ip, port;

	private static Urls mInstance = null;

	public static Urls getIntance() {
		if (mInstance == null) {
			mInstance = new Urls();
		}
		ip = ParameterSetting.getInstance().getParameter(ParFlag.HOST_IP, "119.4.225.34");
		port = ParameterSetting.getInstance().getParameter(ParFlag.HOST_PORT, "8888");
		url = "http://" + ip + ":" + port + "/mis/inter/";
		return mInstance;
	}

	private Urls() {

	};


	/**
	 *
	 * @return 添加库存订单url
	 */
	public String getAddStockOrder() {
		return url + "save_StockOrderInter.action";
	}


	/**
	 *
	 * @return 库存订单列表url
	 */
	public String getOrderListStockUrl() {
		return url + "list_StockOrderInter.action";
	}

	/**
	 *
	 * @return 库存订单详情url
	 */
	public String getStockOrderDetailUrl() {
		return url + "detail_StockOrderInter.action";
	}

	public String getListByLogo() {
		return url + "listByLogo_GoodsInter.action";
	}

	/**
	 *
	 * @return 库存订单作废url
	 */

	public String getDeleteStockOrderUrl() {

		return url + "delete_StockOrderInter.action";
	}

	/**
	 *
	 * @return 销售订单列表url
	 */
	public String getOrderListSaleUrl() {
		return url + "list_SaleOrderInter.action";
	}

	/**
	 *
	 * @return 销售订单详情url
	 */
	public String getSaleOrderDetailUrl() {
		return url + "detail_SaleOrderInter.action";
	}

	/**
	 *
	 * @return 销售订单作废url
	 */
	public String getDeleteSaleOrderUrl() {
		return url + "delete_SaleOrderInter.action";
	}

	/**
	 *
	 * @return 销售订单状态修改
	 */
	public String getUpdateStateSaleOrderUrl() {
		return url + "updateState_SaleOrderInter.action";
	}
	/**
	 *
	 * @return 添加销售订单
	 */
	public String getAddSaleOrderUrl() {
		return url + "save_SaleOrderInter.action";
	}

	/**
	 * 商品分类列表
	 */
	public String getListCateGoodsUrl() {
		return url + "listCate_GoodsInter.action";
	}

	/**
	 *
	 * @return 添加商品分类url
	 */
	public String getAddCateGoodsUrl() {
		return url + "addCate_GoodsInter.action";
	}

	/**
	 * 删除商品分类URL
	 * @return
	 */
	public String getDeleteCateGoodsUrl() {
		return url + "delCate_GoodsInter.action";
	}

	/**
	 * 商品单位列表
	 */
	public String getListUnitGoodsUrl() {
		return url + "listUnit_GoodsInter.action";
	}

	/**
	 * 添加商品单位
	 */
	public String getAddUnitGoodsUrl() {
		return url + "addUnit_GoodsInter.action";
	}

	/**
	 * 删除商品单位
	 */
	public String getDeleteUnitGoodsUrl() {
		return url + "delUnit_GoodsInter.action";
	}

	/**
	 * 商品规格列表
	 */
	public String getListNormsGoodsUrl() {
		return url + "listNorms_GoodsInter.action";
	}

	/**
	 * 添加商品规格
	 */
	public String getAddNormsGoodsUrl() {
		return url + "addNorms_GoodsInter.action";
	}

	/**
	 * 删除商品规格
	 */
	public String getDeleteNormsGoodsUrl() {
		return url + "delNorms_GoodsInter.action";
	}

	/**
	 *客户列表
	 */
	public String getListCustomerUrl() {
		return url + "list_CustomerInter.action";
	}

	/**
	 * 添加客户
	 */
	public String getAddCustomerUrl() {
		return url + "add_CustomerInter.action";
	}

	/**
	 * 删除客户
	 */
	public String getDeleteCustomerUrl() {
		return url + "del_CustomerInter.action";
	}

	/**
	 *供应商列表
	 */
	public String getListSupplyUrl() {
		return url + "list_SupplyInter.action";
	}

	/**
	 * 添加供应商
	 */
	public String getAddSupplyUrl() {
		return url + "add_SupplyInter.action";
	}

	/**
	 * 删除供应商
	 */
	public String getDeleteSupplyUrl() {
		return url + "del_SupplyInter.action";
	}

	/**
	 *商品列表
	 */
	public String getListGoodsUrl() {
		return url + "list_GoodsInter.action";
	}

	/**
	 * 添加商品
	 */
	public String getAddGoodsUrl() {
		return url + "add_GoodsInter.action";
	}

	/**
	 * 修改商品
	 */
	public String getModifyGoodsUrl() {
		return url + "edit_GoodsInter.action";
	}

	/**
	 * 删除商品
	 */
	public String getDeleteGoodsUrl() {
		return url + "del_GoodsInter.action";
	}

	/**
	 * 销售历史、进货历史
	 */
	public String getListAccountUrl() {
		return url + "list_AccountInter.action";
	}

	/**
	 * 日销售利润
	 */
	public String getListProfitDayUrl() {
		return url + "listProfitDay_AccountInter.action";
	}
	/**
	 * 月销售利润
	 */
	public String getListProfitMonthUrl() {
		return url + "listProfitMonth_AccountInter.action";
	}
	/**
	 * 记账列表
	 */
	public String getListAccountHandUrl() {
		return url + "list_AccountHandInter.action";
	}

	/**
	 * 添加记账
	 */
	public String getAddAccountHandUrl() {
		return url + "add_AccountHandInter.action";
	}

	/**
	 * 删除记账
	 */
	public String getDeleteAccountHandUrl() {
		return url + "del_AccountHandInter.action";
	}

	/**
	 * 远程更新url
	 * @return
	 */
	public String getUpdateUrl() {
		return url + "list_VersionInter.action";
	}


	/**
	 * POS初始化url
	 * @return
	 */
	public String getInitTerminalUrl() {
		return url + "init_Terminal.action";
	}
}
